package cn.kattomy.shop.prevcategory.service.impl;

import java.util.List;

import cn.kattomy.shop.prevcategory.dao.PrevCategoryDao;
import cn.kattomy.shop.prevcategory.service.PrevCategoryService;
import cn.kattomy.shop.prevcategory.vo.PrevCategory;

public class PrevCategoryServiceImpl implements PrevCategoryService {

	private PrevCategoryDao prevCategoryDao;
	public void setPrevCategoryDao(PrevCategoryDao prevCategoryDao) {
		this.prevCategoryDao = prevCategoryDao;
	}
	
	@Override
	public List<PrevCategory> findAll() {
		return prevCategoryDao.findAll();
	}

	@Override
	public PrevCategory findByPcid(Integer pcid) {
		return prevCategoryDao.findByPcid(pcid);
	}

	@Override
	public void delete(PrevCategory prevCategory) {
		prevCategoryDao.delete(prevCategory);
	}

	@Override
	public void save(PrevCategory prevCategory) {
		prevCategoryDao.save(prevCategory);
	}

	@Override
	public void update(PrevCategory prevCategory) {
		prevCategoryDao.update(prevCategory);
	}
	
}
